/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.supinfo.youfood.service;

import com.supinfo.youfood.dao.TableRestoDao;
import com.supinfo.youfood.entity.TableResto;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author TaKeO
 */
@Stateless
public class TableRestoService {
    
    @EJB
    private TableRestoDao tableRestoDao;
    
    public TableResto addTableResto(TableResto tableResto)
    {
        return tableRestoDao.addTableResto(tableResto);
    }
    
    public List<TableResto> getAllTableResto()
    {
        return tableRestoDao.getAllTableResto();
    }
    
    public TableResto findTableBy(Long id) {
        return tableRestoDao.findTableById(id);
    }
    
    public void updateTableResto(TableResto table) {
        tableRestoDao.updateTableResto(table);
    }
            
}
